.headroom {
    transition: var(--tr3);
}
.headroom--pinned {
    transform: translateY(0%);
}
.headroom--unpinned {
    transform: translateY(-100%);
}

.header {
    display: block;
    width: 100%;
    height: 90px;
    position: fixed;
    top: 0;
    padding: 20px 20px 0 20px;
    z-index: 10;
}
.navbar {
    width: 100%;
    height: 100%;
    background-color: var(--bgc-filter);
    -webkit-backdrop-filter: blur(20px);
    backdrop-filter: blur(20px);
    border-radius: 10px;
    padding: 0 20px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    transition: var(--tr3);
}
.navbar:hover {
    box-shadow: var(--box-hover);
}
.navbar .left {
    display: flex;
    align-items: center;
    width: calc(100% - 200px);
    /* overflow-X: auto; */
}
.navbar .left::-webkit-scrollbar {
    width: 0;
    height: 0;
}
.navbar .left .logo {
    margin-right: 20px;
}
.navbar .left img {
    width: 32px;
    height: 32px;
    vertical-align: middle;
}

.navbar .left .nav .item {
    display: flex;
    position: relative;
}
.navbar .left .nav .item .menu-block {
    opacity: 0;
    background: var(--bgc-sub);
    position: absolute;
    height: 100%;
    border-radius: var(--radius-sub);
    z-index: 1;
    transition: all .15s;
}
.navbar .left .nav .item > li {
    margin-right: 10px;
    position: relative;
}
.navbar .left .nav .item > li:last-child {
    margin-right: 0;
}
.navbar .left .nav .item > li > a {
    position: relative;
    display: flex;
    align-items: center;
    padding: 5px 12px;
    border-radius: var(--radius-sub);
    color: var(--text);
    font-size: 14px;
    white-space: nowrap;
    transition: var(--tr3);
    z-index: 3;
}
.navbar .left .nav .item > li > a > i {
    margin-right: 5px;
}
.navbar .left .nav .item > .current-menu-item > a {
    background-color: var(--theme);
    background: linear-gradient(to right, var(--theme), var(--theme-sub));
    color: var(--text-box);
}
.navbar .left .nav .item > .menu-item-has-children > a::after {
    display: inline-block;
    margin-left: 4px;
    content: '\e666';
    font-family: iconfont;
    font-size: 12px;
    font-weight: 700;
    transition: var(--tr3);
}
.navbar .left .nav .item > .menu-item-has-children > a:hover::after {
    transform: rotate(-90deg);
}
.navbar .left .nav .item .menu-item-has-children .item-children-box {
    opacity: 0;
    visibility: hidden;
    position: absolute;
    transform: translate(-10px, 0);
    padding-top: 33.5px;
    transition: var(--tr3);
}
.navbar .left .nav .item .menu-item-has-children:hover .item-children-box {
    opacity: 1;
    visibility: visible;
}

.navbar .left .nav .item > .menu-item-has-children .item-children-box .item-children-box {
    display: none;
}

.navbar .left .nav .item .menu-item-has-children .item-children-box ul {
    opacity: 0;
    visibility: hidden;
    transform: translateY(10px);
    padding: 8px;
    border-radius: var(--radius);
    background-color: var(--bgc);
    box-shadow: var(--box);
    overflow: hidden;
    transition: var(--tr3);
}
.navbar .left .nav .item .menu-item-has-children:hover .item-children-box ul {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}
.navbar .left .nav .item .menu-item-has-children .item-children-box ul li {
    /*margin-bottom: 5px;*/
    transform: translateY(20px);
    transition: var(--tr6);
}
.navbar .left .nav .item .menu-item-has-children:hover .item-children-box ul li {
    transform: translateY(0);
}
.navbar .left .nav .item .menu-item-has-children .item-children-box ul li:last-child {
    margin-bottom: 0;
}
.navbar .left .nav .item .menu-item-has-children .item-children-box ul li a {
    display: block;
    padding: 5px 70px 5px 10px;
    font-size: 14px;
    color: var(--text);
    border-radius: var(--radius-sub);
    white-space: nowrap;
    transition: var(--tr1);
}
.navbar .left .nav .item .menu-item-has-children .item-children-box ul li a:hover {
    background-color: var(--theme-sub-text);
}
.navbar .left .nav .item .menu-item-has-children .item-children-box ul .current-menu-item a {
    color: var(--text-box);
    background-color: var(--theme);
    background: linear-gradient(to right, var(--theme), var(--theme-sub));
}


.navbar .right {
    height: 40px;
    position: relative;
}
.navbar .right .user {
    width: 180px;
    display: flex;
    align-items: center;
    justify-content: right;
    cursor: pointer;
}
.navbar .right .visitor {
    width: auto;
}
.navbar .right .user p {
    color: var(--text);
    margin-right: 10px;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}
.navbar .right .user p::-webkit-scrollbar {
    width: 0;
    height: 0;
}
.navbar .right .user img {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    vertical-align: middle;
}
.navbar .right .menu {
    position: absolute;
    right: -20px;
    visibility: hidden;
    opacity: 0;
    transform: translateY(5px);
    transition: var(--tr3);
}

.navbar .right .user:hover ~ .menu,
.navbar .right .menu:hover {
    visibility: visible;
    opacity: 1;
    transform: translateY(0);
}

.navbar .right .menu .box {
    margin-top: 30px;
    padding: 8px;
    border-radius: var(--radius);
    background-color: var(--bgc);
    box-shadow: var(--box);
    overflow: hidden;
}
.navbar .right .menu .box li {
    display: block;
    /*margin-bottom: 5px;*/
    visibility: hidden;
    opacity: 0;
    transform: translateY(20px);
    transition: var(--tr6);
}
.navbar .right .user:hover ~ .menu .box li,
.navbar .right .menu:hover .box li {
    visibility: visible;
    opacity: 1;
    transform: translateY(0);
}

.navbar .right .menu .box li:last-child {
    margin-bottom: 0;
}
.navbar .right .menu .box .search-btn,
.navbar .right .menu .box .search-btn2 {
    cursor: pointer;
}
.navbar .right .menu .box a {
    display: block;
    padding: 5px 10px;
    border-radius: var(--radius-sub);
    position: relative;
    font-size: 14px;
    color: var(--text);
    display: flex;
    align-items: center;
    width: 150px;
}
.navbar .right .menu .box a span {
    font-size: 12px;
    color: var(--text);
}
.navbar .right .menu .box a span:last-child {
    position: absolute;
    right: 10px;
}
.navbar .right .menu .box a:hover,
.navbar .right .menu .box a:hover span {
    color: var(--text-box);
}
.navbar .right .menu .box a span:first-child {
    margin-right: 5px;
}
.navbar .right .menu .box .search-btn:hover,
.navbar .right .menu .box .setting:hover,
.navbar .right .menu .box .login:hover {
    background-color: var(--theme);
    background: linear-gradient(to right, var(--theme), var(--theme-sub));
}
.navbar .right .menu .box .logout:hover {
    background-color: var(--danger);
}

/* 未开启登录导航栏右侧 */
.navbar .right .hide-login {
    height: 100%;
    display: flex;
    align-items: center;
}
.navbar .right .hide-login .search-btn {
    cursor: pointer;
    color: var(--text);
    font-size: 14px;
    padding: 5px 12px;
    border-radius: var(--radius-sub);
    transition: var(--tr3);
}
.navbar .right .hide-login .search-btn:hover {
    background-color: var(--bgc-sub);
}
.navbar .right .hide-login .search-btn span {
    margin-right: 5px;
    font-size: 13px;
}

/* 移动端 */
.header-m,
.menu-m,
.menu-mask {
    display: none;
}